export interface ContextMenuInstance {
    id: number
    destroy: () => void
}

export interface ContextMenuProps {
    options: ContextMenuOptions
    onClose?: () => void
}

export interface ContextMenuOptions<T = any> {
    customItems?: RightMenuItem[]
    items: RightMenuItem[]
    data?:T
    theme?: string
    onClose?: () => void
}
export interface ContextMenuOptions {
    customItems?: RightMenuItem[]
    items: RightMenuItem[]
    theme?: string
    onClose?: () => void
}

export interface RightMenuItem {
    label?: string
    icon?: string
    svg?:Component
    disabled?: boolean
    visible?: boolean
    divided?: boolean
    children?: RightMenuItem[]
    onClick?: (data?:any) => void
}